QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

TARGET = CMDContorl
win32:CONFIG(debug,debug|release) {
    DESTDIR = $$PWD/../bin
} else {
    DESTDIR = $$PWD/../bin
}

INCLUDEPATH += $$PWD/../dependence/cnp/include

LIBS += -L$$PWD/../dependence/x64Win64VS2019 -lfastdds-3.1 -lfastcdr-2.2 -lfoonathan_memory-0.7.3
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    DeviceNode.cpp \
    caskmovecontrol.cpp \
    caskstatus.cpp \
    caskstopcontrol.cpp \
    configdialog.cpp \
    ddsclientwrapper.cpp \
    deviceitemwidget.cpp \
    flag1control.cpp \
    flag1status.cpp \
    flag2control.cpp \
    flag2status.cpp \
    flag3control.cpp \
    flag_lab_cbx.cpp \
    flag_lab_le_lab.cpp \
    flag_ptn_ptn_ptn.cpp \
    joint.cpp \
    jointstatuswidget.cpp \
    liftcontrol.cpp \
    loginwindow.cpp \
    main.cpp \
    mainwindow.cpp \
    messagecontrol.cpp \
    messageitemwidget.cpp \
    modelcontrol.cpp \
    movejoint.cpp \
    moverdown.cpp \
    moverdownstatus.cpp \
    moverup.cpp \
    moverupstatus.cpp \
    movetool.cpp \
    multistepcontrol.cpp \
    overall.cpp \
    pincontrol.cpp \
    selectdevice.cpp \
    singlestepcontrol.cpp \
    switchstaus.cpp \
    tcpstatuswidget.cpp \
    tool_pushbutton.cpp \
    tool_tcp.cpp \
    usersql.cpp

HEADERS += \
    DeviceManager.h \
    DeviceNode.h \
    caskmovecontrol.h \
    caskstatus.h \
    caskstopcontrol.h \
    configdialog.h \
    ddsclientwrapper.hpp \
    deviceitemwidget.h \
    flag1control.h \
    flag1status.h \
    flag2control.h \
    flag2status.h \
    flag3control.h \
    flag_lab_cbx.h \
    flag_lab_le_lab.h \
    flag_ptn_ptn_ptn.h \
    joint.h \
    jointstatuswidget.h \
    liftcontrol.h \
    loginwindow.h \
    mainwindow.h \
    messagecontrol.h \
    messageitemwidget.h \
    modelcontrol.h \
    movejoint.h \
    moverdown.h \
    moverdownstatus.h \
    moverup.h \
    moverupstatus.h \
    movetool.h \
    multistepcontrol.h \
    overall.h \
    pincontrol.h \
    selectdevice.h \
    singlestepcontrol.h \
    switchstaus.h \
    tcpstatuswidget.h \
    tool_pushbutton.h \
    tool_tcp.h \
    usersql.h

FORMS += \
    configdialog.ui \
    loginwindow.ui \
    mainwindow.ui \
    messagecontrol.ui \
    selectdevice.ui \
    switchstaus.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

LIBS += -L$$PWD/../dependence/cnp/lib -lCnpMsg

#DESTDIR = $$PWD/../bin #指定在何处放置目标文件

DISTFILES +=

RESOURCES += \
    res.qrc
